package com.freshcity.page.friend
{
	import com.freshcity.component.container.Component;
	import com.freshcity.core.MainScene;
	import com.freshcity.friend.MsgWin;
	
	import flash.display.DisplayObjectContainer;
	import flash.events.Event;
	
	public class MsgPanel extends Component
	{
		public var home:FriendHome;
		
		public function MsgPanel(parent:DisplayObjectContainer=null, xpos:Number=0, ypos:Number=0)
		{
			super(parent, xpos, ypos);
		}
		
		override protected function addChildren():void
		{
			super.addChildren();
		}
		
		override public function destroy():void
		{
			super.destroy();
		}
		
		override public function show(event:Event=null):void
		{
			MainScene.writeMsg.uid=home.asso.id;
			MainScene.writeMsg.isReply=false;
			MainScene.writeMsg.onShow(this);
			super.show(event);
		}
	}
}